package com.hxd.otc.module.convenience.bean;

import com.hxd.otc.common.enums.ConvenienceModuleStatusEnum;

import java.io.Serializable;

/**
 * 包  名 :  com.hxd.otc.module.convenience.bean
 * 类  名 :  RefuelingServiceBean
 * 作  者 :  zjl
 * 时  间 :  2018/12/13 11:22
 * 描  述 :  ${TODO}
 */
public class RefuelingServiceBean implements Serializable {

    public String id;
    public String moduleName;
    public String parentId;
    public String moduleSort;
    public String moduleTitle;
    public String moduleIcon;
    public String businessType;
    public String moduleCode;
    public String descri;
    public String status;//1.已开通，2.已禁用，3.待开通
    public String createDate;
    public String updateDate;
    public String createBy;
    public String updateBy;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getModuleSort() {
        return moduleSort;
    }

    public void setModuleSort(String moduleSort) {
        this.moduleSort = moduleSort;
    }

    public String getModuleTitle() {
        return moduleTitle;
    }

    public void setModuleTitle(String moduleTitle) {
        this.moduleTitle = moduleTitle;
    }

    public String getModuleIcon() {
        return moduleIcon;
    }

    public void setModuleIcon(String moduleIcon) {
        this.moduleIcon = moduleIcon;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getDescri() {
        return descri;
    }

    public void setDescri(String descri) {
        this.descri = descri;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public ConvenienceModuleStatusEnum getStatusEnum() {
        return ConvenienceModuleStatusEnum.getInstance(status);
    }

    @Override
    public String toString() {
        return "RefuelingServiceBean{" +
                "id=" + id +
                ", moduleName='" + moduleName + '\'' +
                ", parentId='" + parentId + '\'' +
                ", moduleSort='" + moduleSort + '\'' +
                ", moduleTitle='" + moduleTitle + '\'' +
                ", moduleIcon='" + moduleIcon + '\'' +
                ", businessType='" + businessType + '\'' +
                ", moduleCode='" + moduleCode + '\'' +
                ", descri='" + descri + '\'' +
                ", status='" + status + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", createBy='" + createBy + '\'' +
                ", updateBy='" + updateBy + '\'' +
                '}';
    }
}
